﻿@model JSonTest.Orders

@{
		ViewBag.Title = "Order Details";
		Layout = "~/Views/Shared/_Layout.cshtml";
}

<br/>

<div style="margin-bottom: 16px">
		<div class="dropdown pull-right">
				<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown" style="margin-right: 10px"><span class="glyphicon glyphicon-floppy-disk">&nbsp;</span>Export&nbsp;&nbsp;<span class="caret"></span></button>
				<ul class="dropdown-menu">
						<li><a href="">Excel (.xls)</a></li>
						<li><a href="">Word (.doc)</a></li>
						<li><a href="">CSV (.csv)</a></li>
				</ul>
				<button class="btn btn-primary pull-right" onclick="javascript: print();"><span class="glyphicon glyphicon-print"></span>&nbsp;Print</button>
		</div>
</div>



<br />
<br/>



<div class="panel panel-primary">
		<div class="panel-heading"><h4>@ViewBag.Title</h4></div>
		<div class="panel-body">
				<h4>@Html.DisplayFor(model => model.Customers.Firstname) @Html.DisplayFor(model => model.Customers.Lastname) Orders</h4>

				<table class="table table-bordered table-hover table-responsive">
						<tr>
							<th>
								@Html.DisplayNameFor(model => model.order_date)
							</th>
							<th>
								@Html.DisplayNameFor(model => model.Customers.Firstname)
							</th>
						</tr>
						<tr>
							<td>
								@Html.DisplayFor(model => model.order_date)
							</td>
							<td>
								@Html.DisplayFor(model => model.Customers.Firstname)
							</td>
								<td>
										@*@Html.ActionLink("Order Details", "OrderItemsDetails", "Orders", new { @id = Model.order_number }, new { @class = "btn btn-warning" })*@
										<a href="@Url.Action("OrderItemsDetails", "OrdersEF", new { @id = Model.order_number })" class="btn btn-warning"><span class="glyphicon glyphicon-tags">&nbsp;</span>Order Details</a>
								</td>
						</tr>
				</table>
		</div>
</div>

<p>
		@*@Html.ActionLink("Edit", "Edit", new { id = Model.order_number }, new { @class = "btn btn-info" }) |
				@Html.ActionLink("Back to List", "Index", null, new { @class = "btn btn-primary" })*@

		<a href="@Url.Action("Edit", "OrdersEF", new { id = Model.order_number })" class="btn btn-info"><span class="glyphicon glyphicon-edit">&nbsp;</span>Edit</a>		|
		<a href="@Url.Action("Orders", "Home")" class="btn btn-primary"><span class="glyphicon glyphicon-arrow-left">&nbsp;</span>Back to List</a>
</p>



@*<div>
		<h4>Orders</h4>
		<hr />
		<dl class="dl-horizontal">
				<dt>
						@Html.DisplayNameFor(model => model.order_date)
				</dt>

				<dd>
						@Html.DisplayFor(model => model.order_date)
				</dd>

				<dt>
						@Html.DisplayNameFor(model => model.Customers.Firstname)
				</dt>

			<dd>
				@Html.DisplayFor(model => model.Customers.Firstname)
			</dd>
			<dd>
					<a href="@Url.Action("OrderItemsDetails", "OrdersEF", new { @id = Model.order_number })" class="btn btn-warning"><span class="glyphicon glyphicon-tags">&nbsp;</span>Order Details</a>
			</dd>

		</dl>
</div>
<p>
		@Html.ActionLink("Edit", "Edit", new { id = Model.order_number }) |
		@Html.ActionLink("Back to List", "Index", "Home")
</p>*@
